Auto merge of #4169 - alexcrichton:beta-next, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 14 Jun 2017 22:13:38 +0000 (22:13 +0000)
committerbors <bors@rust-lang.org>
Wed, 14 Jun 2017 22:13:38 +0000 (22:13 +0000)
commitcd8455c69038ffd24f3837ef9ba68263d26c38ff
treecec748468684fca87676f3372c3d5dc1358f2572
parentb08dbc24e0da5f9235db1074012318865bff8d4e
parent7177f565764b18d12b8819078b3cb38b39a6c796
Auto merge of #4169 - alexcrichton:beta-next, r=alexcrichton

[beta] Hash `Kind` in metadata for crates

This fixes what is now a bug in Cargo discovered when attempting to land
rust-lang/rust#42495 where Cargo will compile both host and target artifacts
with the same `-C metadata` flag. This means that the compile can load two
crates with the same SVH that are supposed to be distinct, which causes weird
bugs with crate loading and whatnot.

This commit throws in the `Kind` into the metadata calculation to resolve this
to ensure that host/target artifacts always have a different `-C metadata`